<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('user/index')}">用户管理</a></li>
			<li><a href="{:U('user/add')}">用户添加</a></li>
			<li  class="active"><a href="{:U('user/edit')}">用户修改</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('User/edit_post')}">
            <div class="form-group">
<!--                 <label class="col-sm-2 control-label">单位名称</label>
                <div class="col-sm-6">
                    <input type="hidden" name="id" value="{$dept.id}" />
                    <input type="text" class="form-control" name="department_name" placeholder="请输入单位名称" value="{$dept.department_name}">
                </div>
            </div> -->


			<fieldset>
				<div class="form-group">
					<label class="col-sm-2 control-label">{:L('USERNAME')}</label>
					<div class="col-sm-6">
						<input type="text" class="form-control"  name="user_login" value="{$user_login}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">{:L('REALNAME')}</label>
					<div class="col-sm-6">
						<input type="text" class="form-control"  name="real_name" value="{$real_name}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">{:L('DEPARTMENT')}</label>
					<div class="col-sm-6">
                    	<select name="department_id" class="form-control" >
                            <foreach name="depar" item="vo">
                            	<option value="{$vo.id}" <if condition="$vo['id'] eq $department_id">selected</if>>{$vo.department_name}</option>
                            </foreach>
                        </select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">{:L('ROLE')}</label>
					<div class="col-sm-6">
				    <select name="role_id" class="form-control" >
						  <option value="1" <if condition="$role_id eq 1">selected</if>>查看权</option>
						  <option value="2" <if condition="$role_id eq 2">selected</if>>编辑权</option>
						  <option value="3" <if condition="$role_id eq 3">selected</if>>审核权</option>
						  <option value="4" <if condition="$role_id eq 4">selected</if>>分配权</option>
					</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">登录密码</label>
					<div class="col-sm-6">
						<input class="form-control"  type="password" name="user_pass" value="" placeholder=" ****** " >
					</div>
				</div>
			</fieldset>
			<div class="form-actions col-md-10 col-md-offset-2">
				<input type="hidden" name="id" value="{$id}" />
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>